package com.zyit.service.Impl;

import com.zyit.DataObject.T_user;
import com.zyit.dao.AdminDao;
import com.zyit.service.AdminService;

import java.util.List;

public class AdminServiceImpl implements AdminService {
     private AdminDao adminDao = new AdminDao();
    @Override
    public List<T_user> AdminFindListUser(String type) {
        return adminDao.findListUser(type);
    }

    @Override
    public T_user IdByUser(Integer id) {
        return   adminDao.IdByUser(id);
    }

    @Override
    public void idUpdataUser(T_user tUser) {
          adminDao.idUpdataUser(tUser);
    }

    @Override
    public void idDeleteUser(Integer i) {
         adminDao.idDeleteUser(i);
    }

    @Override
    public void addUser(T_user tUser) {
        adminDao.addUser(tUser);
    }
}
